package me.firstapp.service.weixin.cash;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
import java.util.Map;

import me.firstapp.common.utils.Page;
import me.firstapp.module.weixin.cash.CashApply;

public interface CashApplyService {

	CashApply findById(Long id);

	CashApply executeAddCashApply(String openId, String contact, String realName, String aliAccount);

	CashApply executeUpdateStatus(Long id, String openId, Integer status);

	Page<CashApply> findCashApplyPage(Integer pageNo, Integer pageSize, Map<String, Object> searchParams,
			String sortParam, String sortType, Date startTime, Date endTime);

	List<CashApply> findCashApplyPageByOpenId(String openId, int pageIndex, int pageSize);

	CashApply executeUpdate(CashApply cashApply);

	BigDecimal findMemberTotalCashAmount(String openId, String cardNo);
}
